package post

import "apiserver/model"

type CreateRequest struct {
	Title   string `json:"title"`
	Content string `json:"content"`
}
type CreateResponse struct {
	Title string `json:"title"`
}
type ListRequest struct {
	UserId uint64 `json:"userId"`
	Page   int    `json:"page"`
	Limit  int    `json:"limit"`
}
type ListResponse struct {
	Total    uint64            `json:"total"`
	PostList []*model.PostInfo `json:"postList"`
	NextPage int               `json:"nextPage"`
}
